package com.musicdaze.utils;

import java.util.HashMap;

/**
 * This is a container for Property's. The property's have names and are stored
 * by name.
 * @author mfujihara
 * 
 */
@SuppressWarnings("serial")
public class PropertyContainer extends HashMap<String, Property> implements Resettable {
  /**
   * Constructs an empty PropertyContainer
   */
  public PropertyContainer() {
    super();
  }

  /** {@inheritDoc} */
  @Override
  public void reset() {
    for (Property p : values()) {
      p.reset();
    }
  }

  /** {@inheritDoc} */
  @Override
  public boolean equals(Object o) {
    if (o instanceof PropertyContainer) {
      return super.equals(o);
    }
    return false;
  }
}
